<?php 
/**
* 
*/
class MenuController extends Sgit_Controller_Action
{

    protected $_checkZona = true;
    protected $_checkAcceso = false;
    
    
    
    public function viriathusAction(){}


    public function facilityManagementAction(){}
    public function colocationAction(){}
    public function maintenanceAction(){}
    public function powerCoolingAction(){}
    public function dataTelcoAction(){}
    public function seguridadAction(){}
    
    
    public function bmsAction()
    {
             
        $this->_loadModel('Aplicaciones');
        
        $rows = $this->_model->Aplicaciones->getAllByZona($this->_idZona);
        
        
        foreach($rows as $v){
            $enlaces[$v['tipo']][]=$v;
        }
        
        if($this->_idZona==4){
            
            $v['url']='http://172.19.3.233/';
            $v['nombre']='Contadores Gavazzi';
            $enlaces[11][0]=$v;
        }
        
        $this->view->enlaces=$enlaces;
        

        
    }
    
    
    
    
	public function mmrAction()
	{
        $this->view->documentos=Sgit_Util_getFiles::run('archivos', 'mmr', $this->_idZona,true);

        $fecha=new Zend_Date();
        $fecha->setDay(1)->sub(13,Zend_Date::MONTH);

        $this->view->query="&f_ini=".$fecha->toString('yyyy-MM-dd');
	}
    
    
    public function gestionConsumoAction(){}
    public function gestionCircuitosAction(){}
    public function maintenanceInformesAction(){}
    public function despliegueAction(){}
	
    
   	public function controlEconomicoAlojamientoAction(){}
    public function controlEconomicoElectricidadAction(){}
    public function controlEconomicoMmrAction(){}
    
    
    
    
    public function publicoAction(){}

    
    
}


